package com.djhu.freepartner.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zw
 * @since 2018-08-10
 */
@TableName("favourite_post")
public class FavouritePost extends Model<FavouritePost> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ID_WORKER_STR)
    private String id;
    private String userid;
    private String postid;
    private String posttype;
    @TableField("post_status")
    private String postStatus;
    @TableField("post_content")
    private String postContent;
    @TableField("post_user_id")
    private String postUserId;
    @TableField("post_user_name")
    private String postUserName;
    @TableField("create_date")
    private String createDate;
    private String sorted;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getPostid() {
        return postid;
    }

    public void setPostid(String postid) {
        this.postid = postid;
    }

    public String getPosttype() {
        return posttype;
    }

    public void setPosttype(String posttype) {
        this.posttype = posttype;
    }

    public String getPostStatus() {
        return postStatus;
    }

    public void setPostStatus(String postStatus) {
        this.postStatus = postStatus;
    }

    public String getPostContent() {
        return postContent;
    }

    public void setPostContent(String postContent) {
        this.postContent = postContent;
    }

    public String getPostUserId() {
        return postUserId;
    }

    public void setPostUserId(String postUserId) {
        this.postUserId = postUserId;
    }

    public String getPostUserName() {
        return postUserName;
    }

    public void setPostUserName(String postUserName) {
        this.postUserName = postUserName;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getSorted() {
        return sorted;
    }

    public void setSorted(String sorted) {
        this.sorted = sorted;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "FavouritePost{" +
        ", id=" + id +
        ", userid=" + userid +
        ", postid=" + postid +
        ", posttype=" + posttype +
        ", postStatus=" + postStatus +
        ", postContent=" + postContent +
        ", postUserId=" + postUserId +
        ", postUserName=" + postUserName +
        ", createDate=" + createDate +
        ", sorted=" + sorted +
        "}";
    }
}
